package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.RandominSpectionRecordMapper;
import com.ruoyi.domain.RandominSpectionRecord;
import com.ruoyi.service.IRandominSpectionRecordService;

/**
 * RandominSpectionRecordService业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class RandominSpectionRecordServiceImpl implements IRandominSpectionRecordService 
{
    @Autowired
    private RandominSpectionRecordMapper randominSpectionRecordMapper;

    /**
     * 查询RandominSpectionRecord
     * 
     * @param InspectID RandominSpectionRecord主键
     * @return RandominSpectionRecord
     */
    @Override
    public RandominSpectionRecord selectRandominSpectionRecordByInspectID(Long InspectID)
    {
        return randominSpectionRecordMapper.selectRandominSpectionRecordByInspectID(InspectID);
    }

    /**
     * 查询RandominSpectionRecord列表
     * 
     * @param randominSpectionRecord RandominSpectionRecord
     * @return RandominSpectionRecord
     */
    @Override
    public List<RandominSpectionRecord> selectRandominSpectionRecordList(RandominSpectionRecord randominSpectionRecord)
    {
        return randominSpectionRecordMapper.selectRandominSpectionRecordList(randominSpectionRecord);
    }

    /**
     * 新增RandominSpectionRecord
     * 
     * @param randominSpectionRecord RandominSpectionRecord
     * @return 结果
     */
    @Override
    public int insertRandominSpectionRecord(RandominSpectionRecord randominSpectionRecord)
    {
        return randominSpectionRecordMapper.insertRandominSpectionRecord(randominSpectionRecord);
    }

    /**
     * 修改RandominSpectionRecord
     * 
     * @param randominSpectionRecord RandominSpectionRecord
     * @return 结果
     */
    @Override
    public int updateRandominSpectionRecord(RandominSpectionRecord randominSpectionRecord)
    {
        return randominSpectionRecordMapper.updateRandominSpectionRecord(randominSpectionRecord);
    }

    /**
     * 批量删除RandominSpectionRecord
     * 
     * @param InspectIDs 需要删除的RandominSpectionRecord主键
     * @return 结果
     */
    @Override
    public int deleteRandominSpectionRecordByInspectIDs(Long[] InspectIDs)
    {
        return randominSpectionRecordMapper.deleteRandominSpectionRecordByInspectIDs(InspectIDs);
    }

    /**
     * 删除RandominSpectionRecord信息
     * 
     * @param InspectID RandominSpectionRecord主键
     * @return 结果
     */
    @Override
    public int deleteRandominSpectionRecordByInspectID(Long InspectID)
    {
        return randominSpectionRecordMapper.deleteRandominSpectionRecordByInspectID(InspectID);
    }
}
